Altimeters

Lidar

The integration between Veronte Autopilot 1x and a lidar is performed using a variety of interfaces depending on the lidar device. The most common interfaces are I2C or analog although serial or CAN bus can also be used if the lidar is compatible.

ADC lidar

An ADC lidar changes the voltage depending on the measured distance and therefore the connection to the Autopilot 1x is made using the ADC pins (see Pinout - Hardware Installation section of the 1x Hardware Manual).

Once connected to Autopilot 1x, the value can be monitored in 1x PDI Builder by using the variables ADC1 to ADC5. For pin ANALOG_1 the correspondent ADC variable in 1x PDI Builder is ADC1, for ANALOG_2 is ADC2 and so on.

  1. Go to Connections menu \(\rightarrow\) ADC 1 panel (This is only an example, the user must select the ADC pin where the signal is connected).

    Click on ‘Create new program’:

    ../../_images/altimeter_adc_connections.png

    ADC lidar - Create ADC program

  2. Go to Block programs menu.

    Configure the following operation (for more information about blocks, see Block Programs section of this manual):

    ../../_images/altimeter_adc_program.png

    ADC lidar - Lidar operation

After implementing the operation the variable Lidar 1 Distance will represent the distance measured by the lidar.

Note

As Autopilot 4x can read up to 36 V per each ADC, the \(3.3\) value of the ADC program must be changed to \(36\) if applicable.

I2C lidar

I2C lidars are configured slightly differently.

Connect the lidar following the pinout provided by the manufacturer and connect it to the Veronte Autopilot 1x I2C bus following the Pinout - Hardware Installation section of the 1x Hardware Manual.

In this case it is not needed to transform the lidar readings, the readings will be reported directly in the selected lidar distance variable.

Go to Sensors menu \(\rightarrow\) Lidar panel.

  • Enable Lidar 1

  • Select the desired Lidar from the drop-down menu

  • Set the I2C address

More information on the available lidar options can be found in the Lidar - Sensors section of this manual.

../../_images/altimeter_i2c_sensors.png

I2C lidar

Warning

I2C address will be different for different devices make sure to define it properly by checking the manufacturer documentation.

Using lidar readings

Once the information provided by a lidar sensor is stored in a system variable as Lidar Distance via an ADC reading, I2C, serial or CAN, the user has to set how this data will be considered. Common uses are: to consider the lidar data as external sensor or to trigger an action based on a predefined event.

  • Altimeter configuration: The following operation must be configured in the Block Programs menu to consider the lidar measurement as an EKF input.

    ../../_images/altimeter_program1.png

    Altimeter connection in Block Programs

    The Lidar Distance variable where the lidar measurement is stored must be selected. In this example, Lidar 1 Distance has been used:

    ../../_images/altimeter_program2.png

    Altimeter sensor block configuration

    ../../_images/altimeter_program3.png

    Altitude EKF adapter block configuration

    For more information on these blocks, see Altimeter - Sensors blocks and Altitude EKF adapter - Navigation blocks of Block Programs section.

  • Automation: This automation will trigger a change of phase, Flare phase, when the aircraft is landing and at 5 m AGL.

    ../../_images/altimeter_automation.png

    Lidar automation example

    For more information on automations, see Automations section of this manual.

Radar

Radar altimeters are common devices on aircrafts.

Ainstein CAN Radar

The following explanation corresponds to the integration of the Ainstein CAN Radar.

These settings will allow Autopilot 1x to read out via CAN A the radar altimeter reading, in particular distance.

Note

In the datasheet of the radar, the user can access the complete protocol of the device.

  1. Go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Configuration tab.

    Connect an Input filter producer to Custom message 1, in this example Input filter 2 has been selected:

    ../../_images/altimeter_ainstein_radar_can_setup.png

    Ainstein CAN Radar - CAN Setup configuration

    Click on gears to configure this Input filter to read from CAN A, with Id 589826 and allow both types of messages to enter the input filter (since the radar altimeter uses extended IDs).

    ../../_images/altimeter_ainstein_radar_can_setup_input_filter.png

    Ainstein CAN Radar - Input filter configuration

  2. After specifying that Custom message 1 will receive the data from CAN A, go to Mailboxes tab.

    Configure a CAN A mailbox for extended CAN ID message: 589826:

    ../../_images/altimeter_ainstein_radar_can_setup_mailbox.png

    Ainstein CAN Radar - Mailboxes configuration

  3. Go to UI menu \(\rightarrow\) Variables panel \(\rightarrow\) Real Vars tab.

    Rename a User Variable that will be used to store the measurement read from the radar:

    ../../_images/altimeter_ainstein_radar_variable.png

    Ainstein CAN Radar - User Variable renamed

  4. Finally, go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Custom message 1 tab.

    • Add a new message in RX with extended ID 589826 and Big endian:

      ../../_images/altimeter_ainstein_radar_can_setup_custom_message.png

      Ainstein CAN Radar - Custom message 1

    • Clicking on edit_list, configure the reading of the message by setting the following values for the different parameters:

      • Variable: Radar 1 Distance (to store the received value in the user variable that has been renamed above)

      • Compression: Compress - Bits Unsigned

      • Bits: 16

      • Encode - Min/Max: 0.0/1.0

      • Decode - Min/Max: 0/100

      ../../_images/altimeter_ainstein_radar_can_setup_custom_message_configuration.png

      Ainstein CAN Radar - Custom message 1 configuration

For more details on CAN configuration see CAN Setup - Input/Output section of this manual.

Smartmicro CAN Radar

The following explanation corresponds to the integration of the Smartmicro CAN Radar.

These settings will allow Autopilot 1x to read out via CAN A the radar altimeter readings, in particular AGL and vertical speed.

Note

In the datasheet the user can access the complete protocol of the device.

  1. Go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Configuration tab.

    Connect an Input filter to Custom message 1, in this example Input filter 3.

    ../../_images/altimeter_can_radar_can_setup.png

    Smartmicro CAN Radar - CAN Setup configuration

    Configure this Input filter to read from CAN A, with Id 1872

    ../../_images/altimeter_can_radar_can_setup_input_filter.png

    Smartmicro CAN Radar - Input filter configuration

  2. After specifying that Custom message 1 will receive the data from CAN A, go to Mailboxes tab.

    Configure the CAN A baudrate and some mailboxes for CAN ID message: 1872:

    ../../_images/altimeter_can_radar_can_setup_mailbox.png

    Smartmicro CAN Radar - Mailboxes configuration

  3. Go to Custom message 1 tab.

    • Add a new message in RX with ID 1872.

      ../../_images/altimeter_can_radar_can_setup_custom_message.png

      Smartmicro CAN Radar - Custom message 1

    • Define the content of the incoming message as desired.

      ../../_images/altimeter_can_radar_can_setup_custom_message_configuration.png

      Smartmicro CAN Radar - Custom message 1 configuration

For more details on CAN configuration see CAN Setup - Input/Output section of this manual.

Note

CAN ID messages and messages content will change for different Radar altimeters. Check the documentation of your device for further details.